<%@ page language="java" isELIgnored="false" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<%@ include file="/WEB-INF/jsp/ResourceGlobal.jsp"%>
<html>
<head>
	<title>角色菜单权限管理页面</title>
    <meta charset="utf-8">
     <link rel="stylesheet" type="text/css" href="<%=context%>resources/modules/bootstrap/css/plugins/jsTree/style.css" />
     <link rel="stylesheet" type="text/css" href="<%=context%>resources/modules/bootstrap/css/plugins/contextMenu/jquery.contextMenu.css" />
	 <style type="text/css">
     	.defaultHidding{
     		overflow: hidden;
     	}
     </style>
</head>

<body class="fixed-nav main-page">
    <div class="wrapper wrapper-content">
     <div class="" style="float: left;width: 300px;">
       
       <div class="ibox-content" >
         <form id="menuAuthForm" action="<%=context%>sys/oper/roleAuth/ajaxSaveRoleAuth.do" method="post">
	        <input name="roleId" id="roleId" type="hidden"  />
	        <input name="srcOrmemberId" id="srcOrmemberId" type="hidden" value="0" />
	        <button type="button" id="buttonSave" class="btn btn-primary btn-save btn-loading btn-w-xs" data-loading-text="<i class='ico-loading'></i>" onclick="ajaxSaveMenuAuth();">保存</button>

			<div class="form-group" id="belongSystemTemp" style="display: none;">
				<label class="col-sm-4 control-label" style='margin-top: 10px;'>所属系统：</label>
				<div class="col-sm-8 form-inner">
				<select name="belongSystem" id="belongSystem" class="form-control use-select2" >
					<option value="SOLUTION_BIS" selected>solution门户</option>
					<option value="SOLUTION_SYS">solution管理系统</option>
				</select>
				</div>
			</div>
          </form>
        </div>
		<div class="ibox-content">
			<div>
				<nav class="navbar-default navbar-static-side" role="navigation">
					<div class="sidebar-collapse">
						<ul class="nav metismenu" id="side-menu">
							<c:forEach items="${roles }" var="roleVo" >
								<li  class="final-menu" id="li${roleVo.roleId }">
									<span id="${roleVo.roleId }" class="context-menu-one btn btn-neutral">${roleVo.roleName }</span>
								</li>
							</c:forEach>
						</ul>
					</div>
				</nav>
			</div>
		</div>
     </div>
     <div class="" style="float: left;width: 300px;">
         <div class="ibox-content" id="menuList-ibox">
             <div id="menuList"></div>
           
         </div>
     </div>
     <div class="defaultHidding" style="float: left;width: 300px;">
         <div class="ibox-content" id="buttonList-ibox">
             <div id="buttonList"></div>
         </div>
     </div>
     <div class="1" style="float: left;width: 300px;">
         <div class="ibox-content" id="otherList-ibox">
             <div id="otherList"></div>
         </div>
     </div>
</div>
</div>
<!-- 树状菜单必须引用 -->
<script type="text/javascript" src="<%=context%>resources/modules/bootstrap/js/plugins/jsTree/jstree.js?20180724"></script>
<script type="text/javascript" src="<%=context%>resources/modules/bootstrap/js/plugins/contextMenu/jquery.contextMenu.js?20180724"></script>
<script type="text/javascript" src="<%=context%>resources/modules/system/sys/oper/role/roleAuthManage.js?20190724"></script>

</body> 
</html>
